/* start module: Main */
var Main = $pyjs.loaded_modules["Main"] = function (__mod_name__) {
if(Main.__was_initialized__) return Main;
Main.__was_initialized__ = true;
if (__mod_name__ == null) __mod_name__ = 'Main';
var __name__ = Main.__name__ = __mod_name__;
pyjslib.__import__(['pyjd'], 'pyjd', 'Main');
Main.pyjd = $pyjs.__modules__.pyjd;
pyjslib.__import__(['pyjamas.ui.RootPanel.RootPanel', 'pyjamas.ui.RootPanel'], 'pyjamas.ui.RootPanel.RootPanel', 'Main');
Main.RootPanel = $pyjs.__modules__.pyjamas.ui.RootPanel.RootPanel;
pyjslib.__import__(['pyjamas.ui.Button.Button', 'pyjamas.ui.Button'], 'pyjamas.ui.Button.Button', 'Main');
Main.Button = $pyjs.__modules__.pyjamas.ui.Button.Button;
pyjslib.__import__(['pyjamas.ui.HTML.HTML', 'pyjamas.ui.HTML'], 'pyjamas.ui.HTML.HTML', 'Main');
Main.HTML = $pyjs.__modules__.pyjamas.ui.HTML.HTML;
pyjslib.__import__(['pyjamas.ui.Label.Label', 'pyjamas.ui.Label'], 'pyjamas.ui.Label.Label', 'Main');
Main.Label = $pyjs.__modules__.pyjamas.ui.Label.Label;
pyjslib.__import__(['pyjamas.Window', 'pyjamas'], 'pyjamas.Window', 'Main');
Main.Window = $pyjs.__modules__.pyjamas.Window;
pyjslib.__import__(['pygwt'], 'pygwt', 'Main');
Main.pygwt = $pyjs.__modules__.pygwt;
Main.greet = function(fred) {

	pyjslib.printFunc([String('greet button')], 1);
	Main.Window.alert(String('Hello, AJAX!'));
	return null;
};
Main.greet.__name__ = 'greet';

Main.greet.__bind_type__ = 0;
Main.greet.__args__ = [null,null,'fred'];
if (pyjslib.bool(pyjslib.eq(Main.__name__, String('__main__')))) {
	Main.pyjd.setup(String('public/Hello.html?fred=foo#me'));
	Main.b = pyjs_kwargs_call(Main, 'Button', null, null, [{StyleName:String('teststyle')}, String('Click me'), Main.greet]);
	Main.h = pyjs_kwargs_call(Main, 'HTML', null, null, [{StyleName:String('teststyle')}, String('\x3Cb\x3EHello World\x3C/b\x3E (html)')]);
	Main.l = pyjs_kwargs_call(Main, 'Label', null, null, [{StyleName:String('teststyle')}, String('Hello World (label)')]);
	Main.base = pyjs_kwargs_call(Main, 'HTML', null, null, [{StyleName:String('teststyle')}, pyjslib.sprintf(String('Hello from %s'), Main.pygwt.getModuleBaseURL())]);
	Main.RootPanel().add(Main.b);
	Main.RootPanel().add(Main.h);
	Main.RootPanel().add(Main.l);
	Main.RootPanel().add(Main.base);
	Main.pyjd.run();
}
return this;
}; /* end Main */
$pyjs.modules_hash['Main'] = $pyjs.loaded_modules['Main'];


 /* end module: Main */


/*
PYJS_DEPS: ['pyjd', 'pyjamas.ui.RootPanel.RootPanel', 'pyjamas', 'pyjamas.ui', 'pyjamas.ui.RootPanel', 'pyjamas.ui.Button.Button', 'pyjamas.ui.Button', 'pyjamas.ui.HTML.HTML', 'pyjamas.ui.HTML', 'pyjamas.ui.Label.Label', 'pyjamas.ui.Label', 'pyjamas.Window', 'pygwt']
*/
